package com.bw.controller;
import com.alibaba.fastjson2.JSONObject;
import com.bw.service.NumSerive;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class Mcontroller {
    @Autowired
    NumSerive service;
    @RequestMapping("shownum")
    public JSONObject shownum(){
        Double price = service.shownum();
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("status", 0);
        jsonObject.put("msg", "");
        jsonObject.put("data", price);
        return jsonObject;
    }
}
